package com.cart.services;

import com.cart.pojo.CartItem;
import com.cart.pojo.OrderHistory;

import java.util.List;

public interface OrderHistoryRepository {
    List<OrderHistory> findByUserId(int userId);
    void createOrder(int userId, List<CartItem> cartItems);
    void saveOrder(OrderHistory orderHistory);
    List<OrderHistory> findAll();
    void saveToFile();
}
